import { NavLink } from 'react-router-dom'
import type { MenuProps } from 'antd'
import { AppstoreOutlined } from '@ant-design/icons'


type MenuItem = Required<MenuProps>['items'][number];


export const items: MenuItem[] = [
  {
    key: '1',
    label: '平台',
    icon: <AppstoreOutlined />,
    children: [
      {
        key: '1-1',
        label: '基础数据',
        children: [
          {
            key: '1-1-1',
            label: (<NavLink to={'/platform/base-data/concrete-dict'}>混凝土字典</NavLink>)
          }
        ]
      }
    ]
  },
  {
    key: '2',
    label: '项目',
    icon: <AppstoreOutlined />,
    children: [
      {
        key: '2-1',
        label: '基础数据',
        children: [
          {
            key: '2-1-1',
            label: (<NavLink to={'/project/base-data/concrete-number'}>混凝土标号</NavLink>)
          }
        ]
      },
      {
        key: '2-2',
        label: '业务数据',
        children: [
          {
            key: '2-2-1',
            label: (<NavLink to={'/project/business/mat-order-tree'}>用料流程</NavLink>)
          },
          {
            key: '2-2-2',
            label: (<NavLink to={'/project/business/mat-consume-mgr'}>应耗量管理</NavLink>)
          }
        ]
      }
    ]
  }
]